

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>Program - LiterateCS</title>

	<link rel="icon" type="image/x-icon" href="../images/favicon.ico">
    <link rel="stylesheet" href="../bootstrap/css/readable/bootstrap.min.css" />
<link rel="stylesheet" href="../font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="../sidebar/sidebar.min.css" />
<link rel="stylesheet" href="../css/book.min.css" />
<link rel="stylesheet" href="../syntax-highlight/solarized-light.min.css" />
<link rel="stylesheet" href="../mermaid/mermaid.css" />

</head>

<body>
    
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#sidebar-toggle" id="sidebar-toggle">
					<span>
						<img src="../images/favicon.ico" height="24" class="hidden-sm hidden-xs" />
						<i id="sidebar-toggle-icon" class="hidden-md hidden-lg hidden-xl fa fa-angle-double-right" aria-hidden="true"></i>
						LiterateCS
					</span>
				</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav">
                    <li><a href="../index.html"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
					<li><a href="https://github.com/johtela/LiterateCS"><i class="fa fa-github" aria-hidden="true"></i> GitHub Repository</a></li>
                    <li><a href="https://www.nuget.org/packages/LiterateCS/"><i class="fa fa-download" aria-hidden="true"></i> Download</a></li>
                    <li><a href="../License.html">License</a></li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container">
        <div class="row">
            <div id="sidebar" class="col-md-3 hidden-sm hidden-xs">
                
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4>On This Page</h4>
            </div>
            <div id="header-menu" class="panel-body main-menu">
                <ul></ul>
            </div>
        </div>  
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4>Table of Contents</h4>
            </div>
            <div class="panel-body main-menu">
                <ul>
	<li><a href="../index.html">Home</a></li>
	<ul>
	</ul>
	<li><a href="../Introduction.html">Introduction</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/Options.html">Command Line Options</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/Program.html" class="selected">Main Program</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/SplitPath.html">SplitPath Structure</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/Weaver.html">Document Weaver</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/MdWeaver.html">Markdown Weaver</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/HtmlWeaver.html">HTML Weaver</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/TocManager.html">TOC Manager</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/BlockList.html">Source Blocks</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/Macro.html">Macros</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/BlockBuilder.html">Block Builder</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/HtmlBlockBuilder.html">HTML Block Builder</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS/HtmlGenerator.html">HTML Generation</a></li>
	<ul>
	</ul>
	<li>Themes</li>
	<ul>
<ul>
	<li><a href="../LiterateCS.Theme/DirHelpers.html">Directory Utilities</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS.Theme/Toc.html">Table of Contents Classes</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS.Theme/PageParams.html">Page Parameters</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS.Theme/Theme.html">Theme Base Class</a></li>
	<ul>
	</ul>
	<li><a href="../LiterateCS.Theme/LiterateException.html">Reporting Errors</a></li>
	<ul>
	</ul>
</ul>
	</ul>
	<li><a href="../FrontMatter.html">Front Matter</a></li>
	<ul>
	</ul>
	<li><a href="../TableOfContents.html">Table of Contents File</a></li>
	<ul>
	</ul>
	<li><a href="../TipsAndTricks.html">Tips &amp; Tricks</a></li>
	<ul>
	</ul>
	<li><a href="../License.html">License</a></li>
	<ul>
	</ul>
	<li><a href="../README.html">README</a></li>
	<ul>
	</ul>
	<li><a href="../Installation.html">Installation</a></li>
	<ul>
	</ul>
</ul>
            </div>
        </div>

            </div>
			<div id="contentarea" class="col-md-9 col-sm-12 col-sm-push-0 col-xs-12 col-xs-push-0">
				<ul class="pager">
	<li class="previous"><a href="../LiterateCS/Options.html">Previous: Command Line Options</a></li>
	<li class="next"><a href="../LiterateCS/SplitPath.html">Next: SplitPath Structure</a></li>
</ul>
				<div id="static-content" class="markdown">
					<h1 id="main-program">Main Program</h1>
<p>The main program is very simple. It just parses the command line arguments and calls the
<a href="Weaver.html">Weaver</a> class that does the actual work.</p>
<pre class="csharp"><code class="csharp"><span class="keyword" id="LiterateCS">namespace</span> LiterateCS
<span class="punctuation">{</span>
	<span class="keyword">using</span> System<span class="punctuation">;</span>
	<span class="keyword">using</span> CommandLine<span class="punctuation">;</span>
	<span class="keyword">using</span> LiterateCS<span class="punctuation">.</span>Theme<span class="punctuation">;</span>
</code></pre>
<p>The main class is imaginatively named as <code>Program</code>.</p>
<pre class="csharp"><code class="csharp">	<span class="keyword" id="LiterateCS.Program">class</span> <span class="typename">Program</span>
	<span class="punctuation">{</span>
		<span class="keyword" id="LiterateCS.Program.Main(string[])" data-toggle="tooltip" title="LiterateCS.Program.Main(string[])">static</span> <span class="keyword" data-toggle="tooltip" title="int">int</span> <span data-toggle="tooltip" title="LiterateCS.Program.Main(string[])">Main</span> <span class="punctuation">(</span><span class="keyword" data-toggle="tooltip" title="string">string</span><span class="punctuation">[</span><span class="punctuation">]</span> args<span class="punctuation">)</span>
		<span class="punctuation">{</span>
</code></pre>
<h2 id="command-line-parsing">Command Line Parsing</h2>
<p>First we create a command line parser and configure it to be case
insensitive.</p>
<pre class="csharp"><code class="csharp">			<span class="keyword" data-toggle="tooltip" title="CommandLine.Parser">var</span> <span id="cmdLineParser">cmdLineParser</span> <span class="punctuation">=</span> <span class="keyword" data-toggle="tooltip" title="CommandLine.Parser">new</span> <span class="typename">Parser</span> <span class="punctuation">(</span>settings <span class="punctuation" data-toggle="tooltip" title="lambda expression">=&gt;</span>
			<span class="punctuation">{</span>
				<span data-toggle="tooltip" title="CommandLine.ParserSettings">settings</span><span class="punctuation" data-toggle="tooltip" title="bool">.</span><span data-toggle="tooltip" title="bool">CaseSensitive</span> <span class="punctuation" data-toggle="tooltip" title="bool">=</span> <span class="keyword" data-toggle="tooltip" title="bool">false</span><span class="punctuation">;</span>
				<span data-toggle="tooltip" title="CommandLine.ParserSettings">settings</span><span class="punctuation" data-toggle="tooltip" title="System.IO.TextWriter">.</span><span data-toggle="tooltip" title="System.IO.TextWriter">HelpWriter</span> <span class="punctuation" data-toggle="tooltip" title="System.IO.TextWriter">=</span> <span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.IO.TextWriter">.</span><span data-toggle="tooltip" title="System.IO.TextWriter">Out</span><span class="punctuation">;</span>
			<span class="punctuation">}</span><span class="punctuation">)</span><span class="punctuation">;</span>
</code></pre>
<p>Then we parse the command line options into an object that contains the
settings. We use the settings read from the <code>defaults.yml</code> file to
initialize the Options object.</p>
<p>If the parsing fails, the parser will output usage information
automatically after which we terminate the program with exit code 0.</p>
<pre class="csharp"><code class="csharp">			<span class="keyword">try</span>
			<span class="punctuation">{</span>
				<span class="keyword" data-toggle="tooltip" title="System.Lazy<LiterateCS.Options>">var</span> <span id="defaultOptions">defaultOptions</span> <span class="punctuation">=</span> <span class="keyword" data-toggle="tooltip" title="System.Lazy<LiterateCS.Options>">new</span> <span class="typename">Lazy</span><span class="punctuation">&lt;</span><span class="typename" data-toggle="tooltip" title="LiterateCS.Options"><a href="../LiterateCS/Options.html#LiterateCS.Options">Options</a></span><span class="punctuation">&gt;</span> <span class="punctuation">(</span><span class="typename" data-toggle="tooltip" title="LiterateCS.Options"><a href="../LiterateCS/Options.html#LiterateCS.Options">Options</a></span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.Options.LoadFromDefaultsFile()">.</span><span data-toggle="tooltip" title="LiterateCS.Options.LoadFromDefaultsFile()"><a href="../LiterateCS/Options.html#LiterateCS.Options.LoadFromDefaultsFile()">LoadFromDefaultsFile</a></span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span data-toggle="tooltip" title="CommandLine.Parser">cmdLineParser</span><span class="punctuation" data-toggle="tooltip" title="CommandLine.Parser.ParseArguments<LiterateCS.Options>(System.Func<LiterateCS.Options>, System.Collections.Generic.IEnumerable<string>)">.</span><span data-toggle="tooltip" title="CommandLine.Parser.ParseArguments<LiterateCS.Options>(System.Func<LiterateCS.Options>, System.Collections.Generic.IEnumerable<string>)">ParseArguments</span> <span class="punctuation">(</span><span class="punctuation">(</span><span class="punctuation">)</span> <span class="punctuation" data-toggle="tooltip" title="lambda expression">=&gt;</span> <span data-toggle="tooltip" title="System.Lazy<LiterateCS.Options>">defaultOptions</span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.Options">.</span><span data-toggle="tooltip" title="LiterateCS.Options">Value</span><span class="punctuation">,</span> <span data-toggle="tooltip" title="string[]">args</span><span class="punctuation">)</span>
					<span class="punctuation" data-toggle="tooltip" title="CommandLine.ParserResult<LiterateCS.Options>.WithParsed<LiterateCS.Options>(System.Action<LiterateCS.Options>)">.</span><span data-toggle="tooltip" title="CommandLine.ParserResult<LiterateCS.Options>.WithParsed<LiterateCS.Options>(System.Action<LiterateCS.Options>)">WithParsed</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="LiterateCS.Program.GenerateDocumentation(LiterateCS.Options)"><a href="../LiterateCS/Program.html#LiterateCS.Program.GenerateDocumentation(LiterateCS.Options)">GenerateDocumentation</a></span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="keyword">return</span> <span class="number" data-toggle="tooltip" title="int">0</span><span class="punctuation">;</span>
			<span class="punctuation">}</span>
			<span class="keyword">catch</span> <span class="punctuation">(</span><span class="typename" data-toggle="tooltip" title="LiterateCS.Theme.LiterateException"><a href="../LiterateCS.Theme/LiterateException.html#LiterateCS.Theme.LiterateException">LiterateException</a></span> le<span class="punctuation">)</span>
			<span class="punctuation">{</span>
</code></pre>
<p>If some parameters are wrong, we get a LiterateException for those errors.
The exception can output itself cleanly by overriding the ToString method.
We exit with error code 1.</p>
<pre class="csharp"><code class="csharp">				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.ConsoleColor">.</span><span data-toggle="tooltip" title="System.ConsoleColor">ForegroundColor</span> <span class="punctuation" data-toggle="tooltip" title="System.ConsoleColor">=</span> <span class="typename" data-toggle="tooltip" title="System.ConsoleColor">ConsoleColor</span><span class="punctuation" data-toggle="tooltip" title="System.ConsoleColor">.</span><span data-toggle="tooltip" title="System.ConsoleColor">Red</span><span class="punctuation">;</span>
				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(object)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(object)">WriteLine</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="LiterateCS.Theme.LiterateException">le</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.ResetColor()">.</span><span data-toggle="tooltip" title="System.Console.ResetColor()">ResetColor</span> <span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="keyword">return</span> <span class="number" data-toggle="tooltip" title="int">1</span><span class="punctuation">;</span>
			<span class="punctuation">}</span>
			<span class="keyword">catch</span> <span class="punctuation">(</span><span class="typename" data-toggle="tooltip" title="System.Exception">Exception</span> e<span class="punctuation">)</span>
			<span class="punctuation">{</span>
</code></pre>
<p>If an unexpected exception is thrown during the process, its error message
is outputted and the program is terminated with an error code 2.</p>
<pre class="csharp"><code class="csharp">				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.ConsoleColor">.</span><span data-toggle="tooltip" title="System.ConsoleColor">ForegroundColor</span> <span class="punctuation" data-toggle="tooltip" title="System.ConsoleColor">=</span> <span class="typename" data-toggle="tooltip" title="System.ConsoleColor">ConsoleColor</span><span class="punctuation" data-toggle="tooltip" title="System.ConsoleColor">.</span><span data-toggle="tooltip" title="System.ConsoleColor">Red</span><span class="punctuation">;</span>
				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(string)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(string)">WriteLine</span> <span class="punctuation">(</span><span class="string" data-toggle="tooltip" title="string">&quot;Unexpected error in document generation:&quot;</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(string)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(string)">WriteLine</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="System.Exception">e</span><span class="punctuation" data-toggle="tooltip" title="string">.</span><span data-toggle="tooltip" title="string">Message</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.ResetColor()">.</span><span data-toggle="tooltip" title="System.Console.ResetColor()">ResetColor</span> <span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(string)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(string)">WriteLine</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="System.Exception">e</span><span class="punctuation" data-toggle="tooltip" title="string">.</span><span data-toggle="tooltip" title="string">StackTrace</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="keyword">if</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="System.Exception">e</span><span class="punctuation" data-toggle="tooltip" title="System.Exception">.</span><span data-toggle="tooltip" title="System.Exception">InnerException</span> <span class="punctuation" data-toggle="tooltip" title="bool">!=</span> <span class="keyword">null</span><span class="punctuation">)</span>
				<span class="punctuation">{</span>
					<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(string)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(string)">WriteLine</span> <span class="punctuation">(</span><span class="string" data-toggle="tooltip" title="string">&quot;Inner exception:&quot;</span><span class="punctuation">)</span><span class="punctuation">;</span>
					<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(string)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(string)">WriteLine</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="System.Exception">e</span><span class="punctuation" data-toggle="tooltip" title="System.Exception">.</span><span data-toggle="tooltip" title="System.Exception">InnerException</span><span class="punctuation" data-toggle="tooltip" title="string">.</span><span data-toggle="tooltip" title="string">Message</span><span class="punctuation">)</span><span class="punctuation">;</span>
					<span class="typename" data-toggle="tooltip" title="System.Console">Console</span><span class="punctuation" data-toggle="tooltip" title="System.Console.WriteLine(string)">.</span><span data-toggle="tooltip" title="System.Console.WriteLine(string)">WriteLine</span> <span class="punctuation">(</span><span data-toggle="tooltip" title="System.Exception">e</span><span class="punctuation" data-toggle="tooltip" title="System.Exception">.</span><span data-toggle="tooltip" title="System.Exception">InnerException</span><span class="punctuation" data-toggle="tooltip" title="string">.</span><span data-toggle="tooltip" title="string">StackTrace</span><span class="punctuation">)</span><span class="punctuation">;</span>
				<span class="punctuation">}</span>
				<span class="keyword">return</span> <span class="number" data-toggle="tooltip" title="int">2</span><span class="punctuation">;</span>
</code></pre>
<p><em>This code block is used as an example on how to embed code into
markdown files.</em></p>
<pre class="csharp"><code class="csharp">			<span class="punctuation">}</span>
		<span class="punctuation">}</span>
</code></pre>
<h2 id="generating-documentation">Generating Documentation</h2>
<p>If the parsing succeeds, CommandLineParser library will call the
GenerateDocumentation method with the parsed options.</p>
<pre class="csharp"><code class="csharp">		<span class="keyword" id="LiterateCS.Program.GenerateDocumentation(LiterateCS.Options)" data-toggle="tooltip" title="LiterateCS.Program.GenerateDocumentation(LiterateCS.Options)">private</span> <span class="keyword" data-toggle="tooltip" title="LiterateCS.Program.GenerateDocumentation(LiterateCS.Options)">static</span> <span class="keyword" data-toggle="tooltip" title="void">void</span> <span data-toggle="tooltip" title="LiterateCS.Program.GenerateDocumentation(LiterateCS.Options)">GenerateDocumentation</span> <span class="punctuation">(</span><span class="typename" data-toggle="tooltip" title="LiterateCS.Options"><a href="../LiterateCS/Options.html#LiterateCS.Options">Options</a></span> options<span class="punctuation">)</span>
		<span class="punctuation">{</span>
</code></pre>
<p>First we output the effective options we are going to use. This helps
the user to see what options were picked form <code>defaults.yml</code> file.</p>
<pre class="csharp"><code class="csharp">			<span data-toggle="tooltip" title="LiterateCS.Options">options</span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.Options.OutputEffectiveOptions()">.</span><span data-toggle="tooltip" title="LiterateCS.Options.OutputEffectiveOptions()"><a href="../LiterateCS/Options.html#LiterateCS.Options.OutputEffectiveOptions()">OutputEffectiveOptions</a></span> <span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">;</span>
</code></pre>
<p>Then we create a <a href="Weaver.html">Weaver</a> object and call its <code>Generate</code>
method to generate the documentation according to the options.</p>
<pre class="csharp"><code class="csharp">			<span class="keyword" data-toggle="tooltip" title="LiterateCS.Weaver">var</span> <span id="weaver">weaver</span> <span class="punctuation">=</span> <span data-toggle="tooltip" title="LiterateCS.Options">options</span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.OutputFormat">.</span><span data-toggle="tooltip" title="LiterateCS.OutputFormat"><a href="../LiterateCS/Options.html#LiterateCS.Options.Format">Format</a></span> <span class="punctuation" data-toggle="tooltip" title="bool">==</span> <span class="typename" data-toggle="tooltip" title="LiterateCS.OutputFormat"><a href="../LiterateCS/Options.html#LiterateCS.OutputFormat">OutputFormat</a></span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.OutputFormat">.</span><span data-toggle="tooltip" title="LiterateCS.OutputFormat"><a href="../LiterateCS/Options.html#LiterateCS.OutputFormat.html">html</a></span> <span class="punctuation" data-toggle="tooltip" title="LiterateCS.Weaver">?</span>
				<span class="keyword" data-toggle="tooltip" title="LiterateCS.HtmlWeaver">new</span> <span class="typename"><a href="../LiterateCS/HtmlWeaver.html#LiterateCS.HtmlWeaver">HtmlWeaver</a></span> <span class="punctuation">(</span><span data-toggle="tooltip" title="LiterateCS.Options">options</span><span class="punctuation">)</span> <span class="punctuation" data-toggle="tooltip" title="LiterateCS.Weaver">:</span>
				<span class="punctuation" data-toggle="tooltip" title="LiterateCS.Weaver">(</span><span class="typename" data-toggle="tooltip" title="LiterateCS.Weaver"><a href="../LiterateCS/Weaver.html#LiterateCS.Weaver">Weaver</a></span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.Weaver">)</span><span class="keyword" data-toggle="tooltip" title="LiterateCS.MdWeaver">new</span> <span class="typename"><a href="../LiterateCS/MdWeaver.html#LiterateCS.MdWeaver">MdWeaver</a></span> <span class="punctuation">(</span><span data-toggle="tooltip" title="LiterateCS.Options">options</span><span class="punctuation">)</span><span class="punctuation">;</span>
			<span data-toggle="tooltip" title="LiterateCS.Weaver">weaver</span><span class="punctuation" data-toggle="tooltip" title="LiterateCS.Weaver.GenerateDocumentation()">.</span><span data-toggle="tooltip" title="LiterateCS.Weaver.GenerateDocumentation()"><a href="../LiterateCS/Weaver.html#LiterateCS.Weaver.GenerateDocumentation()">GenerateDocumentation</a></span> <span class="punctuation">(</span><span class="punctuation">)</span><span class="punctuation">;</span>
		<span class="punctuation">}</span>
	<span class="punctuation">}</span>
<span class="punctuation">}</span>
</code></pre>
<p>That's all! To see how the documentation generation actually works, jump to the
<a href="Weaver.html">Weaver</a> class.</p>

				</div>
				<ul class="pager">
	<li class="previous"><a href="../LiterateCS/Options.html">Previous: Command Line Options</a></li>
	<li class="next"><a href="../LiterateCS/SplitPath.html">Next: SplitPath Structure</a></li>
</ul>
			</div>
        </div>
    </div>
    
    <footer class="panel-footer text-center">
        <div align="center">Copyright © 2018 Tommi Johtela</div>
		<div align="right">
			<small>
				Documentation created with <a href="https://johtela.github.io/LiterateCS/">LiterateCS</a>.
			</small>
		</div>
    </footer>


    
    <script src="../bootstrap/js/jquery.min.js"></script>
    <script src="../bootstrap/js/bootstrap.min.js"></script>
    <script src="../sidebar/sidebar.js"></script>
    <script src="../syntax-highlight/syntax.js"></script>
    <script type="text/x-mathjax-config">
        MathJax.Hub.Config({
        extensions: ["jsMath2jax.js"]
        });
    </script>
    <script src='https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML'></script>
	<script src="../mermaid/mermaid.min.js"></script>
	<script>mermaid.initialize({startOnLoad:true});</script>

</body>
</html>